package com.example.administrator.xiaoxiang.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.example.administrator.xiaoxiang.R;
import com.example.administrator.xiaoxiang.activity.SafetyActivity;

/**
 * A simple {@link Fragment} subclass.
 */
public class XiaoXiangDaiFragment extends Fragment {
    private TextView tv;//安全认证
    public static final String TAG = "XiaoXiangDai";
    private Button bt;

    public XiaoXiangDaiFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View rootview = inflater.inflate(R.layout.fragment_xiao_xiang_dai, container, false);
        tv = (TextView) rootview.findViewById(R.id.text_safety);
        tv.setText("[小象优品]已通过" + "CFCA中国金融认证中心" + "安全认证\n数据有保证,信息更安全");
        bt = (Button) rootview.findViewById(R.id.bt);
        bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getContext(), SafetyActivity.class));
            }
        });
        return rootview;

    }


}
